<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>jQ 插件的使用 - 瀑布流</title>
    <link rel="stylesheet" href="css/normalize.css" />
    <link rel="stylesheet" href="css/default.css" />
    <style>
      #gallery-wrapper {
        position: relative;
        max-width: 75%;
        width: 75%;
        margin: 50px auto;
      }
      img.thumb {
        width: 100%;
        max-width: 100%;
        height: auto;
      }
      .white-panel {
        position: absolute;
        background: white;
        border-radius: 5px;
        box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
        padding: 10px;
      }
      .white-panel h1 {
        font-size: 1em;
      }
      .white-panel h1 a {
        color: #a92733;
      }
      .white-panel:hover {
        box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
        margin-top: -5px;
        -webkit-transition: all 0.3s ease-in-out;
        -moz-transition: all 0.3s ease-in-out;
        -o-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out;
      }
    </style>
    <script src="lib/jQuery-v3.6.0.min.js"></script>
  </head>
  <body>
    <section id="gallery-wrapper" style="height: 1142px">
      <article class="white-panel r1 c0" style="width: 142.25px; left: 0px; top: 0px">
        <img src="img/1.jpg" class="thumb" />
        <h1><a href="#">Title 1</a></h1>
        <p>Description 1</p>
      </article>
      <article class="white-panel r1 c1" style="width: 142.25px; left: 152.25px; top: 0px">
        <img src="img/2.jpg" class="thumb" />
        <h1><a href="#">Title 2</a></h1>
        <p>Description 2</p>
      </article>
      <article class="white-panel r1 c2" style="width: 142.25px; left: 304.5px; top: 0px">
        <img src="img/3.jpg" class="thumb" />
        <h1><a href="#">Title 3</a></h1>
        <p>Description 3</p>
      </article>
      <article class="white-panel r1 c3" style="width: 142.25px; left: 456.75px; top: 0px">
        <img src="img/4.jpg" class="thumb" />
        <h1><a href="#">Title 4</a></h1>
        <p>Description 4</p>
      </article>
      <article class="white-panel r2 c0" style="width: 142.25px; left: 0px; top: 245px">
        <img src="img/5.jpg" class="thumb" />
        <h1><a href="#">Title 5</a></h1>
        <p>Description 5</p>
      </article>
      <article class="white-panel r2 c1" style="width: 142.25px; left: 152.25px; top: 294px">
        <img src="img/6.jpg" class="thumb" />
        <h1><a href="#">Title 6</a></h1>
        <p>Description 6</p>
      </article>
      <article class="white-panel r2 c2" style="width: 142.25px; left: 304.5px; top: 287px">
        <img src="img/7.jpg" class="thumb" />
        <h1><a href="#">Title 7</a></h1>
        <p>Description 7</p>
      </article>
      <article class="white-panel r2 c3" style="width: 142.25px; left: 456.75px; top: 295px">
        <img src="img/8.jpg" class="thumb" />
        <h1><a href="#">Title 8</a></h1>
        <p>Description 8</p>
      </article>
      <article class="white-panel r3 c0" style="width: 142.25px; left: 0px; top: 531px">
        <img src="img/9.jpg" class="thumb" />
        <h1><a href="#">Title 9</a></h1>
        <p>Description 9</p>
      </article>
      <article class="white-panel r3 c1" style="width: 142.25px; left: 152.25px; top: 538px">
        <img src="img/10.jpg" class="thumb" />
        <h1><a href="#">Title 10</a></h1>
        <p>Description 10</p>
      </article>
      <article class="white-panel r3 c2" style="width: 142.25px; left: 304.5px; top: 581px">
        <img src="img/11.jpg" class="thumb" />
        <h1><a href="#">Title 11</a></h1>
        <p>Description 11</p>
      </article>
      <article class="white-panel r3 c3" style="width: 142.25px; left: 456.75px; top: 763px">
        <img src="img/12.jpg" class="thumb" />
        <h1><a href="#">Title 12</a></h1>
        <p>Description 12</p>
      </article>
      <article class="white-panel r4 c0" style="width: 142.25px; left: 0px; top: 818px">
        <img src="img/13.jpg" class="thumb" />
        <h1><a href="#">Title 13</a></h1>
        <p>Description 13</p>
      </article>
      <article class="white-panel r4 c1" style="width: 142.25px; left: 152.25px; top: 835px">
        <img src="img/14.jpg" class="thumb" />
        <h1><a href="#">Title 14</a></h1>
        <p>Description 14</p>
      </article>
      <article class="white-panel r4 c2" style="width: 142.25px; left: 304.5px; top: 826px">
        <img src="img/15.jpg" class="thumb" />
        <h1><a href="#">Title 15</a></h1>
        <p>Description 15</p>
      </article>
    </section>

    <script src="js/jquery-1.11.0.min.js"></script>
    <script src="js/pinterest_grid.js"></script>
    <script>
      $(function () {
        $('#gallery-wrapper').pinterest_grid({
          no_columns: 4,
          padding_x: 10,
          padding_y: 10,
          margin_bottom: 50,
          single_column_breakpoint: 700
        })
      })
    </script>
  </body>
</html>
